$OpenBSD: patch-provider_server_ECThreadManager_cpp,v 1.5 2015/04/05 22:25:08 robert Exp $
--- provider/server/ECThreadManager.cpp.orig	Thu Mar  5 16:54:03 2015
+++ provider/server/ECThreadManager.cpp	Fri Apr  3 23:11:10 2015
@@ -159,7 +159,7 @@ void *ECWorkerThread::Work(void *lpParam)
     bool fStop = false;
 	int err = 0;
 
-    lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Started%sthread %08x", lpPrio ? " priority " : " ", (ULONG)pthread_self());
+    lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Started%sthread %08x", lpPrio ? " priority " : " ", (uintptr_t)pthread_self());
     
     while(1) {
         // Get the next work item, don't wait for new items
@@ -169,7 +169,7 @@ void *ECWorkerThread::Work(void *lpParam)
             
             // We were requested to exit due to idle state
             if(fStop) {
-                lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Thread %08x idle and requested to exit", (ULONG)pthread_self());
+                lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Thread %08x idle and requested to exit", (uintptr_t)pthread_self());
                 break;
             }
                 
